
<div id="leftColp1">
<div class="widget sidebarWidget">
		<h3 class="widgetbgTitle">All Categories</h3>
		<ul>
		<?php $cates = $_G['cache']->get('category'); foreach($cates as $cate) {if($cate['status'] && !ican('view_hidden_category') )continue;if($cate['pid'] !=0)continue; if(isset($type)){if($cate['type']!=$type)continue;}elseif($cate['type'] !=0) continue;?>        
		              <li class="{if $class['cate'.$cate['cid']]}current-cat{else}cat-item{/if}"><a href="{url category.php?id=$cate[cid]}">{$cate['catename']}{if $cate['total']>0}({$cate['total']}){/if}</a></li>    
		            <?php }?>
		</ul>
	</div>
<div class="widget sidebarWidget">
		<h3 class="widgetbgTitle">Hot Topics</h3>
		{php $articles = get_hot_article();}
		<ul>{loop $articles $article}
		<li><a href="{url article.php?id=$article[aid]}" title="{$article['title']}" target="_blank">{$article['title']}</a></li>
		{/loop}</ul>
	</div>

<div class="widget sidebarWidget">
		<h3 class="widgetbgTitle">Latest Topics</h3>
		{php $articles = get_latest_article();}
		<ul>{loop $articles $article}
		<li><a href="{url article.php?id=$article[aid]}" title="{$article['title']}" target="_blank">{$article['title']}</a></li>
		{/loop}</ul>
	</div>
</div>